import request from '@/utils/request'
export function getEpListAPI(params) {
  return request({
    url: '/park/enterprise',
    params
  })
}
export function delEpAPI(id) {
  return request({
    url: '/park/enterprise/' + id,
    method: 'delete'
  })
}
export function getIndustryListAPI() {
  return request({
    url: '/park/industry'
  })
}
export function addEpAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'post',
    data
  })
}
export function getEpDetailAPI(id) {
  return request({
    url: '/park/enterprise/' + id
  })
}
1

export function updateEpAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'put',
    data
  })
}
export function addRentAPI(data) {
  return request({
    url: '/park/enterprise/rent',
    method: 'post',
    data
  })
}
export function getRentAPI(id) {
  return request({
    url: '/park/enterprise/rent/' + id
  })
}

export function updateRentAPI(id) {
  return request({
    url: '/park/enterprise/rent/' + id,
    method: 'put'
  })
}
export function delRentAPI(id) {
  return request({
    url: '/park/enterprise/rent/' + id,
    method: 'delete'
  })
}
